package util.components.buttons;

import javax.swing.JInternalFrame;

import patterns.Command;

public class JButtonCancelar extends javax.swing.JButton implements Command{

	private JInternalFrame janela;

	public JButtonCancelar(JInternalFrame j, String caption){
		super(caption);
		this.janela = j;
	}

	public void execute() {
		janela.dispose();	
	}
}
